package com.changgou.user.feign;

import com.changgou.common.pojo.Result;
import com.changgou.user.pojo.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author zhouhongyi
 * @InterfaceName UserFeign
 * @Description 详情
 * @Date 2021/8/6 15:51
 */
@FeignClient(name = "user",path = "/user")
public interface UserFeign {

    @GetMapping("/load/{id}")
    Result<User> findByid(@PathVariable(name="id") String id);
}
